<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>采购单药品维护</title>
    <style type="text/css">
        td{
            height: 25px;
            width: 100px;
            border: #3a8ee6 1px solid;

        }
        input{
            height: 21px;
        }
    </style>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../../js/jquery-1.11.0.min.js"></script>
    <script type="text/javascript" src="../../js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../../js/02/purchase/sasdasd2.js"></script>
    <script type="text/javascript" src="../../js/02/purchase/yeshu1.js"></script>
    <script type="text/javascript" src="../../js/02/purchase/juerentijiao1.js"></script>
    <script type="text/javascript" src="../../js/02/quanxuan.js"></script>
    <script type="text/javascript">
        $(function () {
            gets(1)
            $.ajax({
                url: '/myspringboot/suppliser/findAllDC',
                type: 'post',
                dataType: "json",
                success: function (result){
                    var dclist=result.data;
                    var dcid = document.getElementById("dcid");
                    dcid.innerHTML = "<option value='0'>全部</option>";
                    for (var i = 0; i < dclist.length; i++) {
                        var opt = document.createElement("option");
                        opt.innerText = dclist[i].dcName;
                        opt.setAttribute("value", dclist[i].dcId)
                        dcid.appendChild(opt)
                    }
                }
            })
        })

    </script>
</head>
<body>
<div>
    <table class="" style="border: 1px solid #999;border-collapse:collapse">
        <tr>
            <h3 style="height: 50px" >            药品目录维护
            </h3>

        </tr>
        <tr>
            <td>药品流水号：</td>
            <td><input id="dinumber" name="dinumber" type="text" value=""></td>
            <td></td>
            <td>通用名：</td>
            <td><input id="cname" name="cname" type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>剂型：</td>
            <td><input id="jixing" name="jixing" type="text" value=""></td>
            <td></td>
            <td>规格：</td>
            <td><input id="guige" name="guige" type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>单位：</td>
            <td><input id="danwei" name="danwei" type="text" value=""></td>
            <td></td>
            <td>转换系数：</td>
            <td><input id="cc" name="cc" type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>生产企业：</td>
            <td><input name="qiye" id="qiye" type="text" value=""></td>
            <td></td>
            <td>商品名：</td>
            <td><input name="shangpin" id="shangpin" type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>价格范围：</td>
            <td><input id="lefPprice" style="width: 65px" type="text" value="">至<input id="rightPrice" style="width: 65px" type="text" value=""></td>
            <td></td>
            <td>药品类别：</td>
            <td>
                <select id="dcid" style=" height: 25px; width: 160px;">
                    <option value="">请选择</option>
                </select>
            </td>

            <td></td>
        </tr>
        <tr>
            <td>供货商状态：</td>
            <td>
                <select id="ghszt" style=" height: 25px; width: 160px;">
                    <option value="">全部</option>
                    <option value="">正常</option>
                    <option value="">不正常</option>

                </select>
            </td>
            <td></td>
            <td style="width: 120px">药品交易状态:</td>
            <td>
                <select id="state" name="state" style=" height: 25px; width: 160px;">
                    <option value="">全部</option>
                    <option value="">正常</option>
                    <option value="">不正常</option>

                </select>
            </td>
            <td></td>
        </tr>


    </table>
    <td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="reset"  onclick="gets()">查询</button>
        <a href="/myspringboot/purchase/export"><button type="reset">导出</button></a>
        <br>

    </td>
    <table>
        <button id="shanchu" onclick="adf()">删除采购药品</button>
        <tr>
            <td>序号</td>
            <td class="w1"><input type="checkbox" id="checkbox1" value="" onclick="selectAll(this)">
                全选</td>
            <td>药品流水号</td>
            <td>通用名</td>
            <td>剂型</td>
            <td>规格</td>
            <td>单位</td>
            <td>转换系数</td>
            <td>生产企业</td>
            <td>商品名称</td>
            <td>中标价</td>
            <td>药品类别</td>
            <td>供货商</td>
            <td>交易状态</td>
            <td>详细</td>
        </tr>
        <tbody class="a">
        </tbody>
    </table>

</div>
<div class="im-page" id="impage">
    <tr>
        <td><button id='first'>首页</button></td>
        <td><button id='before'>上一页</button></td>
        <td>第<span id="pnum"></span>页</td>
        <td>共<span id="ptotal"></span>页</td>
        <td><button  id='next'>下一页</button></td>
        <td><button id='last'>尾页</button></td>
    </tr>
</div>
</body>
</html>